package com.zrh.jsd.service.studydemo.advanced_collection;

import com.zrh.jsd.common.model.UserRecord;

import java.util.concurrent.CopyOnWriteArraySet;

public class AdvancedCollection {


    public static void main(String[] args) {
        final CopyOnWriteArraySet<UserRecord> userSet = new CopyOnWriteArraySet<>();

        System.out.println(userSet.hashCode());
        UserRecord userRecord = new UserRecord("zhangsan");
        userSet.add(userRecord);
//        System.out.println(userSet.size());
        System.out.println(userSet.hashCode());
        System.out.println(userSet.hashCode());
    }
}
